<%@ Page Language="C#" MasterPageFile="MasterPage.master" 
	AutoEventWireup="true" CodeFile="./Controller/Default.aspx.cs"
	Inherits="View_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div><asp:LoginView ID="LoginView1" runat="server">
       <LoggedInTemplate>
           <%
               Response.Write(User.Identity.Name);
                    if (TestIsLeerling(User.Identity.Name)){
                        Response.Redirect("Oefeningen.aspx");
                      } else {
                          Response.Redirect("Admin.aspx");
                      }
               
           %>
       </LoggedInTemplate>
       <AnonymousTemplate>
           Welkom. Gelieve in te loggen.
       </AnonymousTemplate>
    </asp:LoginView>
 
    </div>
</asp:Content>